package com.gxa.learning.pc.mapper;

import com.gxa.learning.core.pojo.ProjectDetails;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;
import java.util.Map;

public interface ProjectDetailsMapper extends Mapper<ProjectDetails> {

    Integer addProjectAndDetails(ProjectDetails projectDetails);

    ProjectDetails selectById(Long id);

    Map<String, Object> inUseProject(Long pid);

    List<Map<String, Object>> getTypeAndStatus(String status);

    List<Map<String, Object>> getCertificates();

    List<ProjectDetails> getByType(Long tid);

    ProjectDetails getById(Long id);

}
